#!/bin/bash

python extract_xtide.py

# Download everything first, so we don't have to be tethered for long.
# This takes approximately 2 minutes.
python getuwdfo.py --getuw

if true; then
  python getuwdfo.py --getdfo --desired=today
  # python getuwdfo.py --getdfo --desired=oor
  # python getuwdfo.py --getdfo --desired=swift
fi

# -------------------------- End of downloading

# This takes about 20 minutes on rrh's workstation.
# This takes about  2 hours on rrh's PPC macosx laptop
python getuwdfo.py --uw  --desired=today

if true; then
  # writes ./dfodata.csv
  python getuwdfo.py --dfo    --desired=today
fi

if false; then
  # Enable this for OOR computation
  # writes ./dfodata.csv
  python getuwdfo.py --dfo    --desired=oor
fi

if false; then
  # Enable this for Swiftsure computation
  # writes ./dfodata.csv
  python getuwdfo.py --dfo    --desired=swift
fi
